package com.xinzi.apartment.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author xinzi
 * @email 1228604898@qq.com
 * @date 2021-10-04 17:16:18
 */
@Data
@TableName("stu_info")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StuInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	private Integer id;
	/**
	 * 学生学号
	 */
	private String sno;
	/**
	 * 学生姓名
	 */
	private String name;
	/**
	 * 学生性别    f-女    m-男
	 */
	private String gender;
	/**
	 * 民族
	 */
	private String nation;
	/**
	 * 专业
	 */
	private String major;
	/**
	 * 班级
	 */
	private String stuClass;
	/**
	 * 联系方式
	 */
	private String phone;
	/**
	 * 公寓id
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Integer apartmentId;
	/**
	 * 寝室id
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Integer dormitoryId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
